import request from '@/utils/request'

// 查询项目人员列表
export function listProjectStaff(query) {
  return request({
    url: '/gs/projectStaff/list',
    method: 'get',
    params: query
  })
}

// 查询项目人员详细
export function getProjectStaff(id) {
  return request({
    url: '/gs/projectStaff/' + id,
    method: 'get'
  })
}

// 新增项目人员
export function addProjectStaff(data) {
  return request({
    url: '/gs/projectStaff',
    method: 'post',
    data: data
  })
}

// 修改项目人员
export function updateProjectStaff(data) {
  return request({
    url: '/gs/projectStaff',
    method: 'put',
    data: data
  })
}

// 删除项目人员
export function delProjectStaff(id) {
  return request({
    url: '/gs/projectStaff/' + id,
    method: 'delete'
  })
}
